    function displayText() {
        if (document.getElementById("i_926").checked) {
            document.getElementById("i_926_1").style = "";
        } else {
            document.getElementById("i_926_1").style = "display:none";
        }
    }
    
    function submitEvaluateForm() {
        checkEmptyClass();
        if (document.getElementById("i_111").value == "" || isSpace(document.getElementById("i_111").value)){
            location.href = "#participantNo_Location";
            alert("请填写-工号！");
            return;
        }
        if (document.getElementById("i_222").value == "" || isSpace(document.getElementById("i_222").value)){
        	location.href = "#participantName_Location";
            alert("请填写-姓名！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("classAssign"))){
        	location.href = "#classAssign_Location";
            alert("请选择-培训内容-课程安排合理程度！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("classContent"))){
        	location.href = "#classContent_Location";
            alert("请选择-培训内容-课程内容的深度和理解性！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("classContentHelp"))){
        	location.href = "#classContentHelp_Location";
            alert("请选择-培训内容-课程内容对于个人发展的帮助程度！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("classContentRealHelp"))){
        	location.href = "#classContentRealHelp_Location";
            alert("请选择-培训内容-课程内容对于实际工作的帮助程度！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("teacherLook"))){
        	location.href = "#teacherLook_Location";
            alert("请选择-培训师-培训师的仪容仪表！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("teacherPrepare"))){
        	location.href = "#teacherPrepare_Location";
            alert("请选择-培训师-培训师上课内容准备程度！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("teacherExpress"))){
        	location.href = "#teacherExpress_Location";
            alert("请选择-培训师-培训师语言表达和讲课程度！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("teacherContentKnowledge"))){
        	location.href = "#teacherContentKnowledge_Location";
            alert("请选择-培训师-培训师对培训内容的个人见解！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("teacherClassOrganize"))){
        	location.href = "#teacherClassOrganize_Location";
            alert("请选择-培训师-培训师课堂组织能力！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("teacherTrainWay"))){
        	location.href = "#teacherTrainWay_Location";
            alert("请选择-培训师-培训方式多样性和培训氛围！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("teacherEvaluate"))){
        	location.href = "#teacherEvaluate_Location";
            alert("请选择-培训师-对本次培训课程的总体评价！");
            return;
        }
        if(!isCheckedAtLeastOne(document.getElementsByName("trainResult"))){
        	location.href = "#trainGain_Location";
            alert("请在‘参加此次培训的收获’中至少选择一项！");
            return;
        }
        if(document.getElementById("i_926").checked && (document.getElementById("i_926_1").value == "" || isSpace(document.getElementById("i_926_1").value))){
        	location.href = "#trainGain_Location";
        	document.getElementById("q_999").style.backgroundColor = "#FFECEC";
            alert("请在‘参加此次培训的收获’其他项中填写内容！");
            return;
        }
        if(document.getElementById("advice").value == "" || isSpace(document.getElementById("advice").value)){
        	location.href = "#trainAdvice_Location";
            alert("请填写-对今后培训的建议和需求！");
            return;
        }
        $.ajax({
        	type:'POST',
        	url:'/se/sessionAnswers',
        	async:true,
        	data:getCommitResultFormData(),
        	contentType:'application/json',
        	dataType:'json',
        	success:function(json){
        		if(json.success){
        			window.location.href="/se/sessionAnswers/success";
        		}
        	}
        });
    }
    
    function getCommitResultFormData(){
    	var other = "";
    	if(!isSpace($('#i_926_1').val())){
    		other = $('#i_926_1').val();
    	}
    	var arrString = "";
    	$("[name='trainResult']:checked").each(function(){
    		arrString = arrString + "\"" + $(this).val() + "\"" + ",";
    	})
    	arrString = arrString.substring(0, arrString.length - 1);
    	var s =  "{" 
					+ 
					"\"" +"employeeId" + "\"" + ":" + "\"" + $("#i_111").val() + "\"" + ","
					+
					"\"" +"employeeName" + "\"" + ":" + "\"" + $("#i_222").val() + "\"" + ","
					+
					"\"" +"answerA1" + "\"" + ":" + "\"" + $('input[name="classAssign"]:checked').val() + "\"" + ","
					+
					"\"" +"answerA2" + "\"" + ":" + "\"" + $('input[name="classContent"]:checked').val() + "\"" + ","
					+
					"\"" +"answerA3" + "\"" + ":" + "\"" + $('input[name="classContentHelp"]:checked').val() + "\"" + ","
					+
					"\"" +"answerA4" + "\"" + ":" + "\"" + $('input[name="classContentRealHelp"]:checked').val() + "\"" + ","
					+
					"\"" +"answerB1" + "\"" + ":" + "\"" + $('input[name="teacherLook"]:checked').val() + "\"" + ","
					+
					"\"" +"answerB2" + "\"" + ":" + "\"" + $('input[name="teacherPrepare"]:checked').val() + "\"" + ","
					+
					"\"" +"answerB3" + "\"" + ":" + "\"" + $('input[name="teacherExpress"]:checked').val() + "\"" + ","
					+
					"\"" +"answerB4" + "\"" + ":" + "\"" + $('input[name="teacherContentKnowledge"]:checked').val() + "\"" + ","
					+
					"\"" +"answerB5" + "\"" + ":" + "\"" + $('input[name="teacherClassOrganize"]:checked').val() + "\"" + ","
					+
					"\"" +"answerB6" + "\"" + ":" + "\"" + $('input[name="teacherTrainWay"]:checked').val() + "\"" + ","
					+
					"\"" +"answerB7" + "\"" + ":" + "\"" + $('input[name="teacherEvaluate"]:checked').val() + "\"" + ","
					+
					"\"" +"gainFeedback" + "\"" + ":" + "[" + arrString + "]" + ","
					+
					"\"" +"sessionId" + "\"" + ":" + "\"" + getId() + "\"" + ","
					+
					"\"" +"suggestion" + "\"" + ":" + "\"" + $("#advice").val() + "\"";
    	if(other != ""){
    		s = s
    			  +
    			  ","
    			  +
    			  "\"" +"gainRemark" + "\"" + ":" + "\"" + $('#i_926_1').val() + "\""
    			  +
    			  "}";
    	}else{
    		s = s
			  +
			  "}";
    	}
    	return s;
    }
    
    function getId(){
    	var id = document.location.pathname;
    	return id.substring(id.lastIndexOf("\/") + 1);
    }

//    $(function() {
//	$.ajax({
//		type : 'GET',
//		url : '/se/sessionInfos/evaluates/' + getId(),
//		async : true,
//		contentType : 'application/json',
//		dataType : 'json',
//		success : function(xhr) {
//			$('#i_1111').html(xhr);
//		}
//	});
//})